package com.af.monitorModule.generator.entity.VO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author lyz_4dou
 * @since 2021-03-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TimedTaskVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 公司ID
     */
    private Integer companyId;
    private String companyName;

    /**
     * 任务名称
     */
    private String taskName;

    /**
     * 任务说明
     */
    private String taskExplain;

    /**
     * 任务sql类型
     */
    private String taskType;

    /**
     * 任务sql
     */
    private String taskSql;

    /**
     * 下次执行时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime taskRunTime;

    /**
     * 执行周期(天)
     */
    private Integer taskCycleDay;

    /**
     * 执行周期(小时)
     */
    private Integer taskCycleHour;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateDate;

    private Integer state;


}
